#toggle-button{ display: none; }
.button-label{
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
  background-color: rgb(71, 92, 40);
  box-shadow: rgb(71, 92, 40) 0px 0px 0px 2px;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px;
  cursor: pointer;
}
.circle{
  position: absolute;
  top: 0;
  left: 0;
  width: 21px;
  height: 21px;
  border-radius: 11px;
  background-color: rgb(157, 183, 84);
  border: 2px solid rgb(71, 92, 40);
}
.button-label .text {
  font-family: 'Microsoft YaHei';
  width: 25px;
  text-align: center;
  height: 25px;
  line-height: 24px;
  font-size: 12px;
  text-shadow: 0 0 2px #ddd;
  position: absolute;
  top: 0;
  font-weight: normal;
}
.button-label .circle{
  left: 0;
  transition: all 0.3s;
}
#toggle-button:checked + label.button-label .circle{
  left: 25px;
}
#toggle-button:checked + label.button-label{
  background-color: rgb(71, 92, 40);
}
